create a composite unique key constraint with only the year part of date

visit shbcf.ru